﻿using UnityEngine;
using System.Collections;

public class DelayActive : MonoBehaviour {

	public float delay=2f;
	// Use this for initialization
	void Start () {
		StartCoroutine (Delay ());
	}
	
	IEnumerator Delay()
	{
		yield return new WaitForSeconds (delay);
		gameObject.SetActive (false);
	}
}
